import request from "../utils/request"
// 获取商品
export const Getmodify = (id:string) => request.get(`/prod/prod/info/${id}?t=${new Date().getTime()}`)
// 获取分类列表
export const GetCategory = () => request.get(`/prod/category/listCategory?t=${new Date().getTime()}`)
// 获取产品分组列表
export const listTagList = () => request.get(`/prod/prodTag/listTagList?t=${new Date().getTime()}`)
// 获取地址选项
export const transport = () => request.get(`/shop/transport/list?t=${new Date().getTime()}`)
// 获取地址信息
export const transportinfo = (id:string) => request.get(`/shop/transport/info/${id}?t=${new Date().getTime()}`)
// 获取规格列表
export const speclist = () => request.get(`/prod/spec/list?t=${new Date().getTime()}`)
// 添加产品
// /prod/prod
export const addshop = (data:any) => request.post(`/prod/prod`,data)
// /prod/prod
// 编辑产品
export const putshop = (data:any) => request.put(`/prod/prod`,data)
